﻿using ZilLion.Service.Core.DapperWrapper;
using ZilLion.Service.WeChatMall.Domain.Entitys.AppInfo;

namespace ZilLion.Service.WeChatMall.Domain.Repositorys.Interface.AppInfo
{
    public interface IAppRaInfoReponsitory
    {
        AppRaInfoEntity GetRaInfo(string appid);

        /// <summary>
        ///     新增
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="unit"></param>
        void AddInfo(AppRaInfoEntity entity, UnitOfWork unit = null);

        /// <summary>
        ///     修改
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="unit"></param>
        void RemoveInfo(AppRaInfoEntity entity, UnitOfWork unit = null);

        /// <summary>
        ///     删除
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="unit"></param>
        void EditInfo(AppRaInfoEntity entity, UnitOfWork unit = null);
    }
}